package com.service.quartz.dao;

import com.service.quartz.entity.TaskEntity;
import com.service.quartz.interpreter.TaskInterpreter;
import com.service.quartz.model.TaskModel;
import com.service.quartz.repository.TaskRepository;
import com.tool.base.base.BaseDao;
import org.springframework.stereotype.Component;

@Component
public class TaskDao extends BaseDao<TaskEntity, TaskModel, TaskRepository, TaskInterpreter> {
    public TaskModel getById(int id) {
        return mapper.entityToModel(repository.getById(id));
    }
}
